cairo_region_t *region);
static void recompute_visible_regions (GdkWindow *private,
- gboolean recalculate_siblings,
gboolean recalculate_children);
static void gdk_window_flush_recursive (GdkWindow *window);
static void gdk_window_invalidate_in_parent (GdkWindow *private);
static void
recompute_visible_regions_internal (GdkWindow *private,
gboolean recalculate_clip,
- gboolean recalculate_siblings,
gboolean recalculate_children)
{
GdkRectangle r;
*/
recompute_visible_regions_internal (child,
recalculate_clip && (clip_region_changed || recalculate_children),
- FALSE, FALSE);
+ FALSE);
}
}
should_apply_clip_as_shape (private))
apply_clip_as_shape (private);
- if (recalculate_siblings &&
- !gdk_window_is_toplevel (private))
- {
- /* If we moved a child window in parent or changed the stacking order, then we
- * need to recompute the visible area of all the other children in the parent
- */
- for (l = private->parent->children; l; l = l->next)
- {
- child = l->data;
-
- if (child != private)
- recompute_visible_regions_internal (child, TRUE, FALSE, FALSE);
- }
-
- /* We also need to recompute the _with_children clip for the parent */
- recompute_visible_regions_internal (private->parent, TRUE, FALSE, FALSE);
- }
-
if (private->cairo_surface && gdk_window_has_impl (private))
{
GdkWindowImplClass *iface = GDK_WINDOW_IMPL_GET_CLASS (private->impl);
*/
static void
recompute_visible_regions (GdkWindow *private,
- gboolean recalculate_siblings,
gboolean recalculate_children)
{
recompute_visible_regions_internal (private,
TRUE,
- recalculate_siblings,
recalculate_children);
}
void
_gdk_window_update_size (GdkWindow *window)
{
- recompute_visible_regions (window, TRUE, FALSE);
+ recompute_visible_regions (window, FALSE);
}
/* Find the native window that would be just above "child"
window->impl = g_object_ref (window->impl_window->impl);
}
- recompute_visible_regions (window, TRUE, FALSE);
+ recompute_visible_regions (window, FALSE);
gdk_window_set_cursor (window, ((attributes_mask & GDK_WA_CURSOR) ?
(attributes->cursor) :
_gdk_window_update_viewable (window);
- recompute_visible_regions (window, TRUE, FALSE);
- if (old_parent && GDK_WINDOW_TYPE (old_parent) != GDK_WINDOW_ROOT)
- recompute_visible_regions (old_parent, FALSE, TRUE);
+ recompute_visible_regions (window, FALSE);
/* We used to apply the clip as the shape, but no more.
Reset this to the real shape */
impl_class->restack_under ((GdkWindow *)above, &listhead);
}
- recompute_visible_regions (window, FALSE, FALSE);
+ recompute_visible_regions (window, FALSE);
/* The shape may not have been set, as the clip region doesn't actually
change, so do it here manually */
if (!recursing &&
GDK_WINDOW_IS_MAPPED (window))
{
- recompute_visible_regions (window, TRUE, FALSE);
+ recompute_visible_regions (window, FALSE);
gdk_window_invalidate_in_parent (window);
}
}
w->viewable = val;
if (val)
- recompute_visible_regions (w, FALSE, FALSE);
+ recompute_visible_regions (w, FALSE);
for (l = w->children; l != NULL; l = l->next)
{
if (!was_mapped || raise)
{
- recompute_visible_regions (window, TRUE, FALSE);
+ recompute_visible_regions (window, FALSE);
/* If any decendants became visible we need to send visibility notify */
gdk_window_update_visibility_recursively (window, NULL);
/* Keep children in (reverse) stacking order */
gdk_window_raise_internal (window);
- recompute_visible_regions (window, TRUE, FALSE);
-
if (gdk_window_is_viewable (window) &&
!window->input_only)
gdk_window_invalidate_region_full (window, window->clip_region, TRUE, CLEAR_BG_ALL);
/* Keep children in (reverse) stacking order */
gdk_window_lower_internal (window);
- recompute_visible_regions (window, TRUE, FALSE);
-
_gdk_synthesize_crossing_events_for_geometry_change (window);
gdk_window_invalidate_in_parent (window);
}
}
}
- recompute_visible_regions (window, TRUE, FALSE);
-
_gdk_synthesize_crossing_events_for_geometry_change (window);
gdk_window_invalidate_in_parent (window);
}
impl_class->hide (window);
}
- recompute_visible_regions (window, TRUE, FALSE);
+ recompute_visible_regions (window, FALSE);
/* all decendants became non-visible, we need to send visibility notify */
gdk_window_update_visibility_recursively (window, NULL);
_gdk_synthesize_crossing_events_for_geometry_change (window->parent);
}
- recompute_visible_regions (window, TRUE, FALSE);
+ recompute_visible_regions (window, FALSE);
}
}
/* Avoid recomputing for pure toplevel moves, for performance reasons */
if (is_resize)
- recompute_visible_regions (window, TRUE, FALSE);
+ recompute_visible_regions (window, FALSE);
if (expose)
{
old_abs_x = window->abs_x;
old_abs_y = window->abs_y;
- recompute_visible_regions (window, TRUE, FALSE);
+ recompute_visible_regions (window, FALSE);
if (gdk_window_has_impl (window))
{
tmp_list = tmp_list->next;
}
- recompute_visible_regions (window, FALSE, TRUE);
+ recompute_visible_regions (window, TRUE);
move_native_children (window);
else
window->shape = NULL;
- recompute_visible_regions (window, TRUE, FALSE);
+ recompute_visible_regions (window, FALSE);
if (gdk_window_has_impl (window) &&
!should_apply_clip_as_shape (window))
impl_class->set_composited (window, composited);
- recompute_visible_regions (window, TRUE, FALSE);
+ recompute_visible_regions (window, FALSE);
if (GDK_WINDOW_IS_MAPPED (window))
gdk_window_invalidate_in_parent (window);
GDK_WINDOW_IMPL_GET_CLASS (window->impl)->set_opacity (window, opacity);
else
{
- recompute_visible_regions (window, TRUE, FALSE);
+ recompute_visible_regions (window, FALSE);
gdk_window_invalidate_rect_full (window, NULL, TRUE, CLEAR_BG_ALL);
}
}